#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file https://www.gnu.org/licenses/gpl-3.0.txt

from pisi.actionsapi import shelltools, cmaketools, mesontools

j = ''.join([
    ' -Bbuild -G Ninja',
    ' -DCMAKE_INSTALL_PREFIX=/usr',
    ' -DCMAKE_INSTALL_LIBDIR=lib',
    ' -L '
    ])

def setup():
    shelltools.export("QT_LRELEASE_EXECUTABLE", "/usr/lib/qt6/bin/lrelease")
    cmaketools.configure(j)

def build():
    mesontools.build("-C build")

def install():
    mesontools.install("-C build")
